<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      const toPrint = () => {
        window.jsBridge.toPrint('http://www.baidu.com')
      }
    </script>
  </head>
  <body>
    <div onclick="toPrint()">打印</div>
  </body>
</html>
